
#pragma once

#include "introp.h"
#include <vector>

std::vector<baseWindow> pws;

void showWindow(baseWindow* pw, int w, int h, const char* title, bool isFullScreen)
{
	if (pw == nullptr)
		return;
	pw->init(w, h, title, isFullScreen);
	pw->show();
	delete pw;
}

void show_basewindow(int w, int h, const char* title, bool isFullScreen)
{
	baseWindow* pw = new baseWindow();
	pws.push_back(*pw);
	showWindow(pw, w, h, title, isFullScreen);
}

void show_triangle(int w, int h, const char* title, bool isFullScreen)
{
	showWindow(new Triangle(), w, h, title, isFullScreen);
}

void show_TwoTriangle(int w, int h, const char* title, bool isFullScreen)
{
	showWindow(new TwoTriangle(), w, h, title, isFullScreen);
}

void show_rectangle(int w, int h, const char* title, bool isFullScreen)
{
	showWindow(new Rectangle(), w, h, title, isFullScreen);
}
